home *** CD-ROM | disk | FTP | other *** search
- Path: snews.tcel.com!netway
- From: tech@netway.ab.ca (Ritchie Annand)
- Newsgroups: comp.lang.c++
- Subject: Re: Syntatic sugar
- Date: 8 Apr 1996 10:48:28 GMT
- Organization: Telnet Canada (403) 262-5859 info@tcel.com
- Message-ID: <4kaqts$pp3@challenge.tcel.com>
- References: <4k09af$mh6@dewey.csun.edu>
- NNTP-Posting-Host: 204.209.150.53
- X-Newsreader: News Xpress Version 1.0 Beta #4
-
- In article <4k09af$mh6@dewey.csun.edu>, kc44097@csun.edu (chen) wrote:
- >Can someone tell me what is "syntatic sugar" means?
- >Please e-mail me. kc44097@huey.csun.edu
-
- (Syntactic = of syntax)
-
- Don't know if there's an official definition of it anywhere, but I've seen it
- used mostly in the context of "a cuter/nicer way of doing what you can
- already do with regular methods".
-
- For example, you could call operator overloading "syntactic sugar" -
- operator+(x) may not do anything fundamentally different from making an "add"
- method, but it sure seems nicer when it's used properly. (e.g. NOT used to
- mean copy, open or delete ;)
-
- Any other good examples about?
-
- --=- Ritchie A.
-